home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / java / slideshow / sources (skeleton) / aboutdialog.java next >
Encoding:
Java Source  |  2000-06-23  |  1.2 KB  |  48 lines

  1. import java.awt.*;
  2. import java.awt.event.ActionEvent;
  3. import java.awt.event.ActionListener;
  4.  
  5. public class AboutDialog extends Dialog
  6. {
  7.     //DECLARE_CONTROLS
  8.     //Insert "AboutDialog Declare Controls"
  9.  
  10.  
  11.     public AboutDialog(Frame parent, boolean modal)
  12.     {
  13.         super(parent, modal);
  14.  
  15.         //INIT_CONTROLS
  16.         
  17.         //Setting up the dialog the way we want it.
  18.         //Insert "AboutDialog Dialog Setup"
  19.  
  20.         //Setting up label1 and placing it in the layout
  21.         //Insert "AboutDialog label1 Setup"
  22.  
  23.         //Setting up okButton and placing it in the layout
  24.         //Insert "AboutDialog okButton Setup"
  25.  
  26.         //REGISTER_LISTENERS
  27.         //Registering our ActionListner with the okButton
  28.         //Insert "AboutDialog Register Listeners"
  29.     }
  30.  
  31.     /**
  32.      * Shows or hides the component depending on the boolean flag b.
  33.      * @param b  if true, show the component; otherwise, hide the component.
  34.      * @see java.awt.Component#isVisible
  35.      */
  36.     public void setVisible(boolean b)
  37.     {
  38.         //Place the dialog in the Macintosh Alert Position
  39.         //Insert "AboutDialog setVisible"
  40.     }
  41.  
  42.     //Innerclass for handling ActionEvents
  43.     //Insert "AboutDialog ActionListener"
  44.     
  45.     //Respond to button clicked ActionEvents from the okButton
  46.     //Insert "AboutDialog okButton_Clicked"
  47. }
  48.